<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>登录</title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<!-- Add by Kravis Liu 2014.09.22 -->
	<link rel="stylesheet" href="/css/base.css" />
	<link rel="stylesheet" href="/css/login.css" />
	<link rel="stylesheet" media="screen" href="/css/validate.css">

	<script src="/js/jquery-1.11.1.min.js"></script>
	<script src="/js/jqueryValidation/jquery.validate.min.js"></script>	
	<script type="text/javascript">
	    $(document).ready(function(){
	        
	        $("#loginForm").validate({
			rules: {
				username: {
					required: true
				},
				password: {
					required: true
				}
			},
			messages: {
				username: {
					required: "请输入用户名！"
				},
				password: {
					required: "请输入密码！"
				}
			},
			submitHandler:function(form){
                            form.submit();
                        }
		});
	        
	        
	    });
	
	    function login(){
		$("#loginForm").submit();
	    }			 
	</script>
</head>

<body>
<div id="logo"></div>
<div id="page">
	
	<div id="header">
		<h4>后台管理</h4>
	</div>

	<div>
		<form method="post" id="loginForm" action="/login">
			<label>
	
				<input type="text" placeholder="用户名" name="username" id="username" class="nomal_input_text" />
	
			</label>
			<label>
				<input type="password" placeholder="密码" name="password" id="password" class="nomal_input_text"/>
			</label>
			<label>
				<input type="button" value="登录" onclick="login();" class="nomal_input_button"/>
			</label>
		</form>
	</div>

	<!-- <footer></footer> -->
</div>
</html>
